package net.xdclass.shopproject.domain;

public class Product {

    private int price;

    private String title;

    private int stock;

    public Product() {
        System.out.println("Product---------构造方法被执行");
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    @Override
    public String toString() {
        return title + "," + price + "," + stock;
    }

}
